package com.windgo.controller;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author doublec
 * @since 2022/10/12 10:42
 */
@RestController
@EnableWebMvc
public class StaticResourcesController implements WebMvcConfigurer {
    @Override
    //@RequestMapping("/wx/storage/fetch")
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/wx/storage/fetch/**").addResourceLocations("file:E:\\image/");
    }
}
